package com.cn.wanxi.service.impl;

import com.cn.wanxi.dao.ICompanyDao;
import com.cn.wanxi.dao.impl.CompanyImpl;
import com.cn.wanxi.model.CompanyModel;
import com.cn.wanxi.service.ICompanyService;

public class CompanyServiceImpl implements ICompanyService {
    @Override
    public CompanyModel getCompanyModel() {
        //定义一个空的对象，用来装从数据层查询出来的数据
        CompanyModel companyModel=new CompanyModel();
        ICompanyDao iCompanyDao=new CompanyImpl();//主要用来调用数据层的方法
        companyModel=iCompanyDao.getCompanyModel();//通过调用方法，返回model数据
        return companyModel;
    }
}
